package HomeWork;

import java.io.FileReader;

public class Demo04 {
    public static void main(String[] args) {
        try(FileReader fr=new FileReader("aaa.txt")){
            int c;
            char[] chars=new char[1];
            while((c=fr.read(chars))!=-1){
                System.out.println(new String(chars,0,c));
            }
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
